package com.example.dynamicschedule.service.impl;


import com.example.dynamicschedule.bean.CkOrderLoanIntelligenceDivision;
import com.example.dynamicschedule.dao.CkOrderLoanIntelligenceDivisionMapper;
import com.example.dynamicschedule.service.CkOrderLoanIntelligenceDivisionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class CkOrderLoanIntelligenceDivisionServiceImpl implements CkOrderLoanIntelligenceDivisionService {
    @Autowired
    private CkOrderLoanIntelligenceDivisionMapper ckOrderLoanIntelligenceDivisionMapper;
    @Override
    public int insertForeach(List<CkOrderLoanIntelligenceDivision> ckOrderLoanIntelligenceDivisions) {
        return ckOrderLoanIntelligenceDivisionMapper.insertForeach(ckOrderLoanIntelligenceDivisions)   ;
    }

    @Override
    public void updateBySerialNumber(CkOrderLoanIntelligenceDivision ckOrderLoanIntelligenceDivision) {
         ckOrderLoanIntelligenceDivisionMapper.updateBySerialNumber(ckOrderLoanIntelligenceDivision);
    }

    @Override
    public List<CkOrderLoanIntelligenceDivision> selectBySerialNumbers(List<String> serialNumberList) {
        return   ckOrderLoanIntelligenceDivisionMapper.selectBySerialNumbers(serialNumberList);
    }

    @Override
    public void updateForEach(List<CkOrderLoanIntelligenceDivision> oldCkOrderLoanIntelligenceDivisions) {
        ckOrderLoanIntelligenceDivisionMapper.updateForEach(oldCkOrderLoanIntelligenceDivisions);
    }

    @Override
    public List<CkOrderLoanIntelligenceDivision> selectByPeopleId(String peopleId) {
        return ckOrderLoanIntelligenceDivisionMapper.selectByPeopleId(peopleId);

    }
}
